project(TLSFTest)
cmake_minimum_required(VERSION 2.8)
file(GLOB_RECURSE SRC_LIST *.cpp *.hpp ../TLSF/*.cpp ../TLSF/*.hpp)
file(GLOB_RECURSE CXX11_SRC_LIST *.cxx)
add_executable(${PROJECT_NAME} ${SRC_LIST} ${CXX11_SRC_LIST})
set(CMAKE_EXE_LINKER_FLAGS "-static")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wno-pragmas")
#set_source_files_properties(${SRC_LIST} COMPILE_FLAGS "-std=c++03 -D__STDC_CONSTANT_MACROS")
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_SEARCH_START_STATIC ON)
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_SEARCH_END_STATIC ON)
target_link_libraries(${PROJECT_NAME} winpthread)
INCLUDE_DIRECTORIES(SYSTEM $ENV{DXDKROOT}/MyInc)

